package com.example.front.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class IncidentCreateDto {
    private long tenantId;
    @NotNull(message = "事件不能为空")
    private Long eventId;
    @NotNull(message = "网关识别码不能为空")
    private String code;
    private String model;
    @NotNull(message = "网关第几个")
    private Integer devAddr;
    @NotNull(message = "盒子按钮")
    private Integer keyNum;
    @NotNull(message = "按钮状态")
    private Integer keySta;
}
